/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.helpdesk.ejb;

import java.io.Serializable;
import javax.faces.bean.ManagedBean;
import javax.faces.bean.SessionScoped;

/**
 *
 * @author Miguel
 */
@ManagedBean
@SessionScoped

public class MenuBacking implements Serializable {
    private String selection;
    private boolean paginainicio;
  
    
    public MenuBacking() {
       paginainicio=true;
    }

    // getters & setters

    public void active() throws IllegalArgumentException, IllegalAccessException, NoSuchFieldException {
       setPaginainicio(getSelection().equals("paginainicio"));  
    }

    /**
     * @return the selection
     */
    public String getSelection() {
        return selection;
    }

    /**
     * @param selection the selection to set
     */
    public void setSelection(String selection) {
        this.selection = selection;
    }

    /**
     * @return the paginainicio
     */
    public boolean isPaginainicio() {
        return paginainicio;
    }

    /**
     * @param paginainicio the paginainicio to set
     */
    public void setPaginainicio(boolean paginainicio) {
        this.paginainicio = paginainicio;
    }
}